﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapEditor
{
    class TreeObject
    {
        int _x1, _y1, _x2, _y2;
        int _type;
        int _id;

        public TreeObject(int id, int x1, int y1, int x2, int y2, int type)
        {
            this._id = id;
            this._x1 = x1;
            this._x2 = x2;
            this._y1 = y1;
            this._y2 = y2;
            this._type = type;
        }

        public int id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int x1
        {
            get { return _x1; }
            set { _x1 = value; }
        }

        public int x2
        {
            get { return _x2; }
            set { _x2 = value; }
        }

        public int y1
        {
            get { return _y1; }
            set { _y1 = value; }
        }

        public int y2
        {
            get { return _y2; }
            set { _y2 = value; }
        }

        public int type
        {
            get { return _type; }
            set { _type = value; }
        }
    }
}
